﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.IO;

namespace MediaBrowserWS.Service
{
    [ServiceContract]
    public interface IWebPageService
    {
        /// <summary>
        /// Gets a web-based file that is stored in the MediaBrowserWS program data web directory
        /// </summary>
        /// <param name="type"></param>
        /// <param name="filename"></param>
        /// <returns></returns>
        [OperationContract]
        [WebGet(UriTemplate = "/{type}/{filename}")]
        Stream GetWebFileInDir(string type, string filename);

        /// <summary>
        /// Gets a html file or test file from the root Web directory
        /// </summary>
        /// <param name="filename"></param>
        /// <returns></returns>
        [OperationContract]
        [WebGet(UriTemplate = "/{filename}")]
        Stream GetWebFile(string filename);
    }
}
